/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.menu.service;

import java.util.ArrayList;
import java.util.List;

import com.thinkgem.jeesite.modules.shop.entity.OrderGoods;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.menu.entity.OrderGoods3;
import com.thinkgem.jeesite.modules.menu.dao.OrderGoods3Dao;

/**
 * 订单商品Service
 * @author dby
 * @version 2020-07-12
 */
@Service
@Transactional(readOnly = true)
public class OrderGoods3Service extends CrudService<OrderGoods3Dao, OrderGoods3> {

	public OrderGoods3 get(String id) {
		return super.get(id);
	}
	
	public List<OrderGoods3> findList(OrderGoods3 orderGoods3) {
		return super.findList(orderGoods3);
	}
	
	public Page<OrderGoods3> findPage(Page<OrderGoods3> page, OrderGoods3 orderGoods3) {
		return super.findPage(page, orderGoods3);
	}
	
	@Transactional(readOnly = false)
	public void save(OrderGoods3 orderGoods3) {
		super.save(orderGoods3);
	}
	
	@Transactional(readOnly = false)
	public void delete(OrderGoods3 orderGoods3) {
		super.delete(orderGoods3);
	}


	/*
	 * @Author Zhang Xingliang
	 * @Description 批量保存
	 * @Date 22:54 2020/7/7
	 **/
	@Transactional(readOnly = false)
	public void insertList(List<OrderGoods3> orderGoodsList) {
		if(null ==orderGoodsList || orderGoodsList.isEmpty()){
			return;
		}
		dao.insertList(orderGoodsList);
	}

	@Transactional(readOnly = false)
	public void updateList(List<OrderGoods3> orderGoodsList) {
		if(null ==orderGoodsList || orderGoodsList.isEmpty()){
			return;
		}
		dao.updateList(orderGoodsList);
	}



}